
/**
 * 数据源
 * */
const students = [
    {
        key: '1',
        name: '小陈',
        studentID: '18001',
        classID: '1班',
        sex: '男'
    },
    {
        key: '2',
        name: '李莉',
        studentID: '18002',
        classID: '2班',
        sex: '女'
    },
    {
        key: '3',
        name: '王小帅',
        studentID: '18003',
        classID: '3班',
        sex: '男'
    },
    {
        key: '4',
        name: '刘德华',
        studentID: '18004',
        classID: '3班',
        sex: '男'
    },
    {
        key: '5',
        name: '张学友',
        studentID: '18005',
        classID: '2班',
        sex: '男'
    },
    {
        key: '6',
        name: '郭富城',
        studentID: '18006',
        classID: '4班',
        sex: '女'
    },
    {
        key: '7',
        name: '黎明',
        studentID: '18007',
        classID: '4班',
        sex: '男'
    },
    {
        key: '8',
        name: '丽丽',
        studentID: '18008',
        classID: '5班',
        sex: '女'
    },
    {
        key: '9',
        name: '苏',
        studentID: '18009',
        classID: '4班',
        sex: '女'
    },
    {
        key: '10',
        name: '小李',
        studentID: '18010',
        classID: '2班',
        sex: '男'
    },
    {
        key: '11',
        name: '张家',
        studentID: '18011',
        classID: '1班',
        sex: '女'
    },
]

const getStudentInfos = () => {
    return students;
}

module.exports = {
    path: '/api/students',
    type: 'get',
    func: getStudentInfos
}